package cn.edu.njuit.springbootdemo.javabean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component(value = "user")
@ConfigurationProperties(prefix = "stuuser.user")
@Data
public class StuUser {

//    @Value("${stuuser.user.id}")
    private Long id;
//    @Value("小天")
    private String name;
//    @Value("12")
    private Integer age;




}
